package com.siyecao.uid.worker.dao;

import com.siyecao.uid.worker.entity.WorkerNodeEntity;
import org.apache.commons.lang3.RandomUtils;

public class WorkerNodeDefault implements WorkerNodeResposity {

    @Override
    public WorkerNodeEntity getWorkerNodeByHostPort(String host, String port) {
        return null;
    }

    @Override
    public void addWorkerNode(WorkerNodeEntity entity) {
        entity.setId( RandomUtils.nextInt( 0, 1000 ) );
    }
}